<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./fontsizeAuto.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-size: .16rem;
        }
        .box{
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        body{
            width: 100wh;
            height: 100vh;
        }
        header{
            
            height: .60rem;
            background-color: pink;
        }
        main{
            flex: 1;
            overflow: hidden;
            overflow-y: scroll;

        }
        .logo{
            display: flex;
            flex-wrap: wrap;

        }
        .logo>span{
            width: 33.33%;
            text-align: center;
            
        }
        footer{
            height: .6rem;
            background-color: skyblue;
        }
        img{
            width: .5rem;
        }
        .flex-col{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
    </style>
</head>
<body>
    <div class="box">
        <header>1</header>
        <main>
            <div style="height: 3000px;">
                <div id="app">
                    <div class="logo">
                        <span v-for='item in logo' :key='item.id' class="flex-col">
                            <img :src="item.icon" alt="">
                            <span>{{item.name}}</span>
                        </span>
                    </div>
                    
                </div>
            </div>
        </main>
        <footer>3</footer>
    </div>
</body>
<script src="./axios.js"></script>
<script src="./vue.js"></script>
<script>
    const vm=new Vue({
        el:'#app',
        data:{
            logo:null
        },
        methods:{
            getlogo(){
                axios({
                    method:'get',
                    baseURL:'https://api.it120.cc/conner',
                    url:'/shop/goods/category/all',

                }).then(res=>{
                    this.logo=res.data.data
                    console.log(this.logo)
                })
            }
        },
        created(){
            this.getlogo()
        }
    })
</script>
</html>